package transfos;

import java.io.File;

import astjava.JavaFactory;
import astjava.Model;
import uml2Java.JavaChargeur;
import uml2Java.MultipleInheritanceNotAllowedException;
import uml2Java.TransformAssociations;
import uml2Java.TransformAttributes;
import uml2Java.TransformInheritance;
import uml2Java.TransformMethods;
import uml2Java.TransformPackagesAndTypes;
import uml2Java.UMLChargeur;

import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.emf.ecore.EPackage.Registry;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
import org.eclipse.uml2.uml.Package;
import org.eclipse.uml2.uml.UMLPackage;

import fr.irit.etracetool.etrace.EtracePackage;

public class TransfoSGF extends Transfo{
	public TransfoSGF(String chemin) {
		javaModel = JavaFactory.eINSTANCE.createModel();
		this.chemin = chemin;
		UMLChargeur chargeur = new UMLChargeur(chemin+".uml");
		umlPackage = chargeur.loadUMLPackage();
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		TransfoCourse t = new TransfoCourse("model/SGF");
		t.transform();
		printTestResult();
	}
}
